import { HttpResponse } from '@/types/global';
import axios from 'axios';

// eslint-disable-next-line import/prefer-default-export
export function uploadImage(data: FormData, abort: AbortController) {
  return axios.post<HttpResponse<string>>('/api/v1/common/image/upload', data, {
    signal: abort.signal,
  });
}
